<div class="layui-card">
    <div class="layui-card-header">
        <h2 class="header-title">字典数据表</h2>
        <span class="layui-breadcrumb pull-right">
          <a href="#!console">自动生成页面</a>
          <a><cite>字典数据表</cite></a>
        </span>
    </div>


    <div class="layui-card-body">
        <div class="layui-form toolbar">
            搜索：
            <input id="sysDictData-edit-value" class="layui-input search-input" type="text" placeholder="输入关键字"/>&emsp;
            <button id="sysDictData-btn-search" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
            <button id="sysDictData-btn-add" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
        </div>

        <!-- 数据表格 -->
        <table class="layui-table" id="sysDictData-table" lay-filter="sysDictData-table"></table>
    </div>
</div>


<script>
	layui.use(['form', 'table', 'util', 'config', 'admin', 'formSelects'], function () {
	    var form = layui.form;
	    var table = layui.table;
	    var config = layui.config;
	    var layer = layui.layer;
	    var util = layui.util;
	    var admin = layui.admin;
	    var formSelects = layui.formSelects;

        //渲染表格
        table.render({
            elem: '#sysDictData-table',
            url: config.base_server + 'api-tools/sysdictdata/list',
            where: {
                access_token: config.getToken().access_token
            },
            page: true,
            cols: [[
                {type: 'numbers'},
                {field: 'dictType', title: '类型',width: 80},
                {field: 'dictValue', title: '名字'},
                {field: 'dictCode', title: '编码'},
                {align: 'center', toolbar: '#sysDictData-table-bar', title: '操作',width: 250}
            ]]
        });
        
    });
</script>